﻿using System;
using System.Drawing;

namespace Spencen.Mobile.UI.Primitives
{
    public class RectangleElement : PolygonElement
    {
        protected override Point[] GeneratePoints()
        {
            var points = new Point[ 4 ];
            points[ 0 ] = new Point( 0, 0 );
            points[ 1 ] = new Point( Size.Width - 1, 0 );
            points[ 2 ] = new Point( Size.Width - 1, Size.Height -1 );
            points[ 3 ] = new Point( 0, Size.Height - 1 );
            return points;
        }
    }
}
